<!doctype html> 
<html> 
<head> 
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <title>BBS开发文档</title>
    <style>
    #wrapper{
        margin: 0 auto;
        width: 60%;
    }
    @media(max-width:800px){
        #wrapper{
            width: 99%;
            word-wrap: break-word;
        }
    }
    li ul li {
        margin: 10px 0;
    }
    ::-webkit-scrollbar { width:6px; margin-right:2px; }
    ::-webkit-scrollbar-track-piece { background-color:#F5F5F5; border-left:1px solid #D2D2D2; }
    ::-webkit-scrollbar-thumb { background:#CBCBCB; width:6px; }
    ::-webkit-scrollbar-thumb:hover { background:#952; }
    </style> 
</head>
<body>
    <div id='wrapper'>
        <section>
        	<h1>系统要求</h1>
        	<p>PHP5.2+即可</p>
        	<p>系统轻量,简易高效,资源消耗少</p>
        	<p>模块清晰,易于开发,便于定制</p>
        </section>
        <section>
        	<h1>安装配置</h1>
        	<p>配置数据库,SMTP等必须信息</p>
        	<p>配置个性化参数和应用程序自定义设置,见m_bbs.php和app_config.php</p>
        	<p>添加url重写规则</p>
        </section>
        <section>
        	<h1>模块简介</h1>
        	<p>论坛模块</p>
        	<p>用户模块</p>
        	<p>图片模块</p>
        	<p>即时消息模块</p>
        	<p>门户模块</p>
        </section>
        <section>
        	<h1>模块详细</h1>
        	<h3>公共信息</h3>
            <ul>
                <li>
                    <b>用户登陆</b>
                    <ul>
                        <li>loginUser($email,$pass)</li>
                        <li>loginUserByName($name,$pass)</li>
                    </ul>
                </li>
                <li>
                    <b>用户注册</b>
                    <ul>
                        <li>createUser($name,$pass,$email)</li>
                    </ul>
                </li>
                <li>
                    <b>获取用户信息</b>
                    <ul>
                        <li>getUserInfo($id)</li>
                        <li>getCurrentUserInfo($sessionKey='USERID')</li>
                    </ul>
                </li>
                <li>
                    <b>删除用户</b>
                    <ul>
                        <li>deleteUser($id)</li>
                        <li>deleteUserByEmail($email)</li>
                    </ul>
                </li>
                <li>
                    <b>用户列表</b>
                    <ul>
                        <li>userList($page=1)</li>
                        <li>userListWhere($page=1,$where)</li>
                    </ul>

                </li>
                <li>
                    <b>友情链接</b>
                    <ul>
                        <li>config('links')</li>
                    </ul>
                </li>

            </ul>
            <h3>论坛信息</h3>
            <ul>
                <li>
                    <b>论坛板块信息</b>
                    <ul>
                        <li>getforumList()</li>
                        <li>getForumInfo($fid)</li>
                    </ul>
                </li>
                <li>
                    <b>精华帖子</b>
                    <ul>
                        <li>getPostMark($fid=null,$page=1,$pageSize=20)</li>
                    </ul>
                </li>
                <li>
                    <b>论坛统计信息</b>
                    <ul>
                        <li>包含昨日贴数,今日帖子数,共计数,会员数,新会员  statsInfo()</li>
                        <li>用户数userCount()</li>
                        <li>postCount()</li>
                        <li>datePostCount()</li>
                    </ul>
                </li>
                <li>
                    <b>论坛全局帖子排列</b>
                    <ul>
                        <li>getNewPostList($forumId=null,$page=1,$num=50)</li>
                    </ul>
                </li>
                <li>
                    <b>论坛单个板块</b>
                    <ul>
                        <li>getNewPostList($forumId=null,$page=1,$num=50)</li>
                    </ul>
                </li>
                
            </ul>

            <h3>门户相关</h3>
            <ul>
                <li>
                    <b>首页推荐帖子</b>
                    <ul>
                        <li>getNewPostList($forumId=null,$page=1,$num=50)</li>
                    </ul>
                </li>
                <li>
                    <b>首页推荐美图</b>
                    <ul>
                        <li>getImgPost($forumId=null,$num=20)</li>
                    </ul>
                </li>
                <li>
                    <b>首页标签</b>
                    <ul>
                        <li></li>
                    </ul>

                </li>
            </ul>
            <h3>美图模块</h3>
            <ul>
                <li>
                    <b>获取</b>
                    <ul>
                        <li>getImgPost($forumId=null,$num=20)</li>
                    </ul>
                </li>
            </ul>
            <h3>即时消息模块</h3>
            <ul>
                <li>
                    <b>即时消息</b>
                    <ul>
                        <li></li>
                    </ul>
                </li>
            </ul>
        	
        </section>
    </div>
    <div style="height:300px;"></div>
</body>
</html>